﻿@{
    ViewBag.Title = "Đăng nhập hệ thống";
    Layout = null;
}

@model TS2015.Models.TbNguoiDung

@{
    AjaxOptions aj = new AjaxOptions
    {
        HttpMethod = "POST"
    };
}

<!doctype html>
<html lang="">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">

    <title>@ViewBag.Title</title>

</head>
<body class="bg-primary" style="overflow:hidden">
    <div class="center-wrapper">
        <div class="center-content">
            <div class="row">
                <div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4">
                    <section class="panel bg-white no-b">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title" style="text-align:center; font-weight:bold">Đăng nhập hệ thống </h3>
                            </div>
                        </div>
                        <div class="p15" id="login-form">
                            @using (Ajax.BeginForm("Login","Home", aj))
                            {
                                @Html.ValidationSummary(true)
                                @Html.AntiForgeryToken()
                                @Html.ValidationMessage("Error")
                                <div class="input-group form-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                                    @Html.TextBoxFor(m => m.TenDangNhap, new { @class = "form-control", placeholder = "Tên đăng nhập", @autofocus = "" })
                                </div>
                                @Html.ValidationMessageFor(m => m.TenDangNhap)
                                <div class="input-group form-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                                    @Html.PasswordFor(m => m.MatKhau, new { @class = "form-control", placeholder = "Mật khẩu" })
                                </div>
                                @Html.ValidationMessageFor(m => m.MatKhau)

                                <div class="show">

                                    <input type="checkbox" name="remember" value="true"/><b>Nhớ đăng nhập lần sau</b>
                                    <a href="#" class="block"><b>Quên mật khẩu?</b></a>
                                </div>
                                <button class="btn btn-primary" type="submit">Đăng nhập</button>
                            }
                        </div>
                    </section>
                </div>
            </div>
        </div>
    </div>
    <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/css/main.css" rel="stylesheet" />
    <link href="~/Content/css/animate.min.css" rel="stylesheet" />

    @Scripts.Render("~/bundles/jquery")

    @Scripts.Render("~/bundles/jqueryval")
</body>

</html>
